home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
LOGIC Apps
/
Logic-APPLE_II_APPS.iso
/
pc
/
LOGIC Apple II 5.25" Library - DOS Part 3
/
DOS064.dsk
/
HOUSE SALES.bas
< prev
next >
Wrap
BASIC Source File
|
2012-02-16
|
7KB
|
183 lines
2 REM A REAL PROPERTY PROFIT GUIDE
4 REM BY FRANK J. DERFLER JR.
5 REM 1979
6 REM KILOBAUD,NOV.'79, PP.112,113
10 HOME
20 PRINT TAB( 7);"BOY, DID I MAKE A KILLING!!"
30 PRINT : PRINT
40 PRINT "THIS PROGRAM WILL HELP YOU TO DETER-"
50 PRINT "MINE YOUR ACTUAL PROFIT OR LOSS FROM "
60 PRINT "THE SALE OF A HOUSE OR PROPERTY. IT "
65 PRINT "WILL ASK YOU MANY DIFFERENT QUESTIONS."
70 PRINT "IN SOME CASES IT WILL HELP YOU TO"
80 PRINT "COMPUTE THE INFORMATION REQUESTED. "
90 PRINT "HOPE YOU MADE A BUNDLE!": GOSUB 1650
100 GOSUB 1660
110 PRINT "WHAT PRICE DID YOU SELL YOUR PROPERTY"
120 INPUT "FOR? (ENTER 0 FOR HELP) ";S
130 PRINT : PRINT "WHAT WAS THE AMOUNT OF THE ORIGINAL"
140 INPUT "MORTGAGE OR LOAN? ";L
150 PRINT : PRINT "HOW MANY YEARS WAS THE ORIGINAL "
155 INPUT "MORTGAGE OR LOAN FOR? ";Y3
160 IF S >0 THEN GOTO 240
170 GOSUB 1660: PRINT " SELLING PRICE"
180 PRINT "THE SELLING PRICE DEPENDS UPON MANY"
190 PRINT "FACTORS, BUT IF YOU ARE PROJECTING "
195 PRINT "INTO THE FUTURE, YOU MUST ASSUME SOME"
200 PRINT "ANNUAL APPRECIATION RATE. WHAT PERCENT"
210 INPUT "PER YEAR WILL YOUR PROPERTY APPRECIATE?";A
230 A = A/100
240 PRINT : INPUT "WHAT WAS YOUR DOWN PAYMENT? ";D
260 PRINT : PRINT "HOW MANY YEARS AND MONTHS DID YOU"
265 INPUT "OWN? (Y,M) ";Y,M
270 Y = (Y *12 +M)/12: IF S >0 THEN GOTO 290
280 S = ((S +A) ^Y) *(L +D)
290 GOSUB 1660
300 PRINT "YOUR SELLING PRICE IS :$";S
310 REM DOLLAR AMOUNTS NEED TO BE FORMATTED
320 G = S -(L +D)
330 PRINT
340 PRINT " YOUR CAPITAL GAIN (ORIGINAL PRICE"
350 PRINT " MINUS SELLING PRICE) IS: $";G
360 GOSUB 1650: GOSUB 1660
370 PRINT "NOW WE WILL DETERMINE WHAT IT COST TO"
380 PRINT "OWN THAT PROPERTY.": PRINT
390 PRINT "PROPERTY TAX: EITHER PROVIDE A YEARLY"
400 PRINT "AVERAGE FROM YOUR RECORDS OR ESTIMATE"
410 INPUT "YOUR YEARLY PAYMENT: ";T2: PRINT
420 PRINT "WHAT IS THE INTEREST RATE ON YOUR "
430 INPUT "MORTGAGE? ";I
440 I = 1/12/100:Y1 = INT(Y *12):L5 = L
450 Q1 = 1/(1 +I) ^(12 *Y3)
460 Q2 = LS *I/(1 -Q1)
470 Q2 = INT(Q2 *100 +.5)/100
480 FOR X5 = 1 TO Y1
490 U2 = INT(L5 *I *100 +.5)/100
500 U3 = Q2 -U2
510 L5 = L5 -U3:I6 = I6 +U2
520 NEXT :I9 = I6/Y
530 PRINT " YOUR INTEREST PAID IS: $";I6
540 GOSUB 1650: GOSUB 1660
550 PRINT "PLEASE SELECT YOUR APPROXIMATE "
560 PRINT "ADJUSTED GROSS INCOME FOR TAX PURPOSES"
565 PRINT "FROM THE FOLLOWING: "
570 PRINT " 1. $ 5,000 TO $10,000"
580 PRINT " 2. $10,000 TO $15,000"
590 PRINT " 3. $15,000 TO $20,000"
600 PRINT " 4. $20,000 TO $25,000"
610 PRINT " 5. $25,000 TO $30,000"
620 PRINT " 6. $30,000 TO $35,000"
630 PRINT " 7. $35,000 TO $40,000"
640 PRINT : PRINT "TYPE IN THE NUMBER OF THE BRACKET YOU"
650 INPUT "ARE IN ";Z1
660 PRINT : INPUT "DO YOU FILE SINGLE(1) OR JOINTLY(2)? ";Z2
670 IF Z2 = 2 THEN GOTO 760
680 ON Z1 GOTO 690,700,710,720,730,740,750
690 T1 = .04:T3 = .23: GOTO 840
700 T1 = .10:T3 = .28: GOTO 840
710 T1 = .17:T3 = .33: GOTO 840
720 T1 = .24:T3 = .39: GOTO 840
730 T1 = .32:T3 = .42: GOTO 840
740 T1 = .40:T3 = .46: GOTO 840
750 T1 = .48:T3 = .49: GOTO 840
760 ON Z1 GOTO 770,780,790,800,810,820,830
770 T1 = .05:T3 = .19: GOTO 840
780 T1 = .08:T3 = .22: GOTO 840
790 T1 = .11:T3 = .26: GOTO 840
800 T1 = .15:T3 = .32: GOTO 840
810 T1 = .20:T3 = .36: GOTO 840
820 T1 = .25:T3 = .39: GOTO 840
830 T1 = .30:T3 = .44: GOTO 840
840 PRINT : INPUT "DO YOU PAY STATE INCOME TAX? (Y OR N)";B$
850 IF B$ = "Y" THEN T1 = T1 +(T1 *.3)
860 C2 = ((1 -T1) *I9) +((1 -T1) *T2)
870 GOSUB 1660
880 PRINT "DO YOU KNOW WHAT INSURANCE ON THIS"
890 INPUT "PROPERTY COSTS PER YEAR?(Y OR N)";C$
910 IF C$ = "N" THEN GOTO 940
920 : INPUT "INSURANCE COST PER YEAR: ";N
930 GOTO 960
940 N = S *.002
950 PRINT "AN ESTIMATE, BASED ON SELLING PRICE "
955 PRINT "IS $";N: PRINT
960 PRINT "CAN YOU PRIVIDE AN ESTIMATE OF THE"
970 PRINT "ANNUAL AMOUNT SPENT ON UPKEEP OF THE"
980 INPUT "PROPERTY? (Y OR N)";D$: IF D$ = "N" THEN GOTO 1010
990 INPUT "ANNUAL MAINTENANCE COST: ";K
1000 GOTO 1030
1010 K = S *.005
1020 PRINT "YEARLY ESTIMATE, BASED ON SELLING "
1030 PRINT "PRICE: $";K: PRINT
1035 INPUT "CAN YOU ESTIMATE CLOSING COSTS? (Y/N)";D$
1040 IF D$ = "N" THEN GOTO 1070
1050 INPUT "CLOSING COSTS: $";C1
1060 GOTO 1100
1070 C1 = S *.01
1080 PRINT "ESTIMATE, BASED ON SELLING PRICE IS: ": PRINT "$";C1
1090 GOSUB 1650: GOSUB 1660
1100 PRINT : INPUT "DID YOU SELL THROUGH A REALTOR? (Y/N)";G$
1110 IF G$ = "N" THEN GOTO 1180
1120 INPUT "DO YOU KNOW THE REALTOR'S PERCENTAGE?";E$
1130 IF E$ = "N" THEN GOTO 1160
1140 INPUT "REALTOR'S PERCENTAGE: $";F3
1150 F = F3/100: GOSUB 1660: GOTO 1190
1160 F = .065:F1 = S *F
1170 PRINT "ESTIMATE THE FEE WILL BE: $";F1
1180 GOSUB 1650: GOSUB 1660
1190 PRINT "ENTER ANY OTHER COSTS SUCH AS POINTS TO"
1200 PRINT "SELLER, FIX UP, LANDSCAPE, ADVERTISING"
1210 INPUT "ETC.: $";P
1215 C4 = (F *S) +P:C3 = K +N
1220 E = Y *(C2 +C3) +C1 +C4:Z = G -E
1230 GOSUB 1660
1240 PRINT : PRINT " IT COST YOU $";E
1250 PRINT " TO OWN THAT PROPERTY."
1260 PRINT : PRINT " BASED ON A SELLING PRICE OF": PRINT " $";S
1270 PRINT " YOUR NET RETURN IS: $";Z
1280 PRINT : PRINT "WOULD YOU LIKE TO COMPARE THIS TO THE"
1290 INPUT "ALTERNATIVE OF RENTING? ";A$
1293 IF A$ = "N" THEN PRINT "TOO BAD, WE'LL LOOK ANYWAY!"
1300 GOSUB 1650: GOSUB 1660
1310 PRINT TAB( 10);"COMPARISON TO RENTING"
1320 PRINT : PRINT "WHAT WOULD IT COST PER MONTH TO RENT "
1330 INPUT "OR LEASE A SIMILAR PROPERTY? ";R1
1340 M1 = INT(E/Y1): IF R1 <M1 THEN GOTO 1380
1350 D6 = R1 -M1
1360 PRINT
1370 PRINT "YOU ARE $";D6;" A MONTH AHEAD BY"
1375 PRINT "OWNING.": END
1380 D1 = M1 -R1: PRINT "THAT FEE IS $";D1;" LESS THAN"
1390 PRINT "YOUR AVERAGE MONTHLY COST OF OWNING."
1400 PRINT : PRINT "WHAT IS THE HIGHEST PER CENT OF RETURN"
1410 PRINT "YOU WOULD EXPECT FROM YOUR TYPICAL "
1420 PRINT "INVESTMENT (SAVINGS, DEPOSIT CERTIFI-"
1430 INPUT "CATE, BOND, ETC.)? ";R3
1440 R3 = R3/Y1/100
1445 REM SOME OF THE SIGNS MAY BE WRONG, BECAUSE THEY WERE LEFT OUT OF THE MAGAZINE LISTING OF THE PROGRAM
1450 D3 = D *(1 +R3) *(4 *Y):D3 = INT(D3 *100 +.5)/100
1460 D4 = D1 *((1 +R3) *(12 *Y) -1)/R3:D4 = INT(D4 *100 +.5)/100
1470 D5 = D4 +D3
1480 GOSUB 1660
1490 PRINT "AT THE INTEREST RATE YOU SPECIFIED,"
1500 PRINT "YOUR DOWNPAYMENT AND MONTHLY INVEST-"
1510 PRINT "MENTS WOULD HAVE GROWN TO: $";D5
1520 R7 = R1 *Y1
1530 PRINT : PRINT "YOUR COST FOR RENT WOULD HAVE BEEN;"
1540 GOSUB 1650: GOSUB 1660
1550 PRINT "OWNING AND SELLING BROUGHT YOU "
1560 PRINT "$";Z +D;" CASH IN HAND."
1570 PRINT
1580 Z6 = D5 -R7
1600 F3 = F0 +F1 +G2 +D -R7
1610 PRINT "RENTING AND INVESTING BROUGHT YOU:"
1620 PRINT "$";Z6;" OR (IF THE INTEREST WAS "
1630 PRINT "FULLY TAXED): $";F3
1635 PRINT "CASH IN HAND."
1636 PRINT : PRINT : PRINT "THAT'S ALL THE COMPARING I AM PREPARED"
1637 PRINT "TO SHOW YOU! I HOPE I HAVE BEEN OF ": PRINT "SOME ASSISTANCE. ": PRINT : PRINT TAB( 17);"THE END"
1640 END
1650 PRINT : INPUT "PRESS RETURN TO CONTINUE ";A$: RETURN
1660 HOME : FOR Z3 = 1 TO 40: PRINT "$";: NEXT Z3: PRINT : PRINT
1670 RETURN
11535 PRINT "$";R7
11590 F0 = D4 -(D1 *Y1):F1 = D3 -D:F2 = (F0 +F1) -((F0 +F1) *(T3 *Y))